package com.neu.fenli2023623.mapper;

import com.neu.fenli2023623.dto.UserDto;
import com.neu.fenli2023623.entity.User;
import com.neu.fenli2023623.vo.RightVo;
import com.neu.fenli2023623.vo.UserVo;

import java.util.List;

/**
* @author 1
* @description 针对表【User(管理员管理)】的数据库操作Mapper
* @createDate 2023-07-01 16:07:25
* @Entity com.neu.fenli2023623.entity.User
*/
public interface UserMapper {

    User Login(UserDto user);

    User selectByAccount(String account);

    String[] selectPermissionByAccount(String account);

    String[] selectRoleByAccount(String account);

    List<RightVo> selectRightByAccount(String account,Integer parentId);

    List<UserVo> selectAll(UserDto userDto);

    int deleteByPrimaryKey(Long id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    List<UserVo> selectExportData(UserDto userDto);
}
